/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Modelo.Controler;

import Model.Beans.Institution;
import Model.Servicios.InstSrv;
import com.opensymphony.xwork2.ActionSupport;
import java.util.List;

/**
 *
 * @author John Mex
 */
public class AdminInstListAction extends  ActionSupport {
    InstSrv instSrv = new InstSrv();
    private List<Institution> institutions;
    
    public String showAllInstitutions(){
        setInstitutions(instSrv.gellAll());
        return SUCCESS;
    }
    
    public void setInstitutions(List<Institution> institutions)
    {
        this.institutions = institutions;
    }
    
    public List<Institution> getInstitutions()
    {
        return institutions;
    }
    
    
}
